<%@ page language="java"
	import="java.util.*, com.icss.beans.*,com.icss.beans.FileVO,com.icss.daos.*"
	pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<jsp:useBean id="noticeVO" class="com.icss.beans.NoticeVO"></jsp:useBean>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<LINK href="<%=basePath %>css/style.css" type="text/css"
	rel="stylesheet">
<LINK href="<%=basePath %>css/mytable.css" type="text/css"
	rel="stylesheet">
<SCRIPT src="<%=basePath %>js/mytable.js" type="text/javascript"></SCRIPT>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<SCRIPT src="<%=basePath %>js/utility.js" type="text/javascript"></SCRIPT>
<SCRIPT type="text/javascript">
function killErrors()
{
  return true;
}
window.onerror = killErrors;

window.setTimeout('this.location.reload();',1200000);
var my_pos=true;
var my_width=65;
var my_expand=true;

function _edit(module_id)
{
	 show_msg("optionBlock");
    $("optionBlockTitle").innerText=$("module_"+module_id+"_text").innerText+" 模块选项";
    $('display_lines').focus();
	 $('display_lines').value=lines_per_page(module_id);
	 $('scroll').checked=getCookie("my_scroll_1_"+module_id)=="true";
	 $('col_width').value=my_width;
	 $('module_id').value=module_id;
}
function _resize(module_id)
{
	 var module_i=$("module_"+module_id);
	 var head_i=$("module_"+module_id+"_head");
	 var body_i=$("module_"+module_id+"_body");
	 var img_i=$("img_resize_"+module_id);
	 var my_cookie=getCookie("my_expand_1");
	 my_cookie = (my_cookie==null || my_cookie=="undefined") ? "" : my_cookie; 
	 if(body_i.style.display=="none")
	 {
	    module_i.className=module_i.className.substr(0,module_i.className.lastIndexOf(" "));
	    head_i.className=head_i.className.substr(0,head_i.className.lastIndexOf(" "));
	    body_i.style.display="block";
	    img_i.src=img_i.src.substr(0,img_i.src.lastIndexOf("/")+1)+"expand_arrow.png";

	    img_i.title="折叠";

	    if(my_cookie.indexOf(module_id+",") == 0)
	       my_cookie = my_cookie.replace(module_id+",", "");
	    else if(my_cookie.indexOf(","+module_id+",") > 0)
	       my_cookie = my_cookie.replace(","+module_id+",", ",");

	    //my_expand=true;
       setCookie("my_expand_all_1", "");
	 }
	 else
	 {
	    module_i.className=module_i.className+" listColorCollapsed";
	    head_i.className=head_i.className+" moduleHeaderCollapsed";
	    body_i.style.display="none";
	    img_i.src=img_i.src.substr(0,img_i.src.lastIndexOf("/")+1)+"collapse_arrow.png";
	    img_i.title="展开";
	
	    if(my_cookie.indexOf(module_id+",") != 0 && my_cookie.indexOf(","+module_id+",") <= 0)
	       my_cookie += module_id+",";
	 }
	 setCookie("my_expand_1", my_cookie);
}
function resize_all()
{
   var img_all_resize=$("img_all_resize");
   var imgs=document.getElementsByTagName("IMG");
   var module_id_str="";
   for(var i=0;i<imgs.length;i++)
   {
      if(imgs[i].id.substr(0,11)!="img_resize_")
         continue;

      var module_id=imgs[i].id.substr(11,imgs[i].id.length);
      module_id_str+=module_id+",";
      if(my_expand && $("module_"+module_id+"_body").style.display!="none" || !my_expand && $("module_"+module_id+"_body").style.display=="none")
         _resize(module_id);
   }

   if(my_expand)
   {
      img_all_resize.src=img_all_resize.src.substr(0,img_all_resize.src.lastIndexOf("/")+1)+"collapse_arrow.png";
      setCookie("my_expand_1",module_id_str);
   }
   else
   {
      img_all_resize.src=img_all_resize.src.substr(0,img_all_resize.src.lastIndexOf("/")+1)+"expand_arrow.png";
      setCookie("my_expand_1","");
   }

   my_expand=!my_expand;
   setCookie("my_expand_all_1", my_expand ? "" : "0");
}
function SetNums()
{
	 var today_lines=$('display_lines').value;
	 var col_width=$('col_width').value;
   if(today_lines=="" || checkNum(today_lines) || col_width=="" || checkNum(col_width))
   {
      alert("显示条数和栏目宽度必须是数字");
      return;
   }

   if(parseInt(today_lines)<=0 || parseInt(today_lines)>=1000)
   {
      alert("显示条数必须在1-1000之间");
      return;
   }
   if(parseInt(col_width)<=0 || parseInt(col_width)>100)
   {
      alert("栏目宽度必须在1-100之间");
      return;
   }
   setCookie("my_nums_1_"+$('module_id').value, today_lines);
   setCookie("my_scroll_1_"+$('module_id').value, $('scroll').checked);
   setCookie("my_width_1", col_width);

   my_width=col_width;

   $("msgBody").style.display = "none";
   $("msgCommand").style.display = "none";
   $("msgSuccess").style.display = "block";

   window.location.reload();
}
</SCRIPT>



<body>
<DIV id=desktop_config><IMG id=img_all_resize title="全部 展开/折叠"
	onclick=resize_all() src="../../img/expand_arrow.png"></DIV>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
	<TBODY>
		<TR>
			<TD id="col_l" vAlign="top" width="65%">
			<DIV class="module listColor" id="module_1">
			<DIV class="head">
			<H4 class="moduleHeader" id="module_1_head"><A class="expand"
				href="javascript:_resize(1);"> <IMG class="icon"
				id="img_resize_1" title="折叠" src="../../img/expand_arrow.png"></A>
			<SPAN class="text" id="module_1_text" onClick="_resize(1)";>公告通知</SPAN>
			<SPAN class="title" id="module_1_title" style="CURSOR: move"></SPAN>
			<SPAN class="close" id="module_1_op"> <A
				class="PageLinkDisable" id="module_1_link_pre" title="上一页"
				href="javascript:NextPage('1',-1);"><B>▲</B></A> <A
				id="module_1_link_next" title="下一页"
				href="javascript:NextPage('1',1);"><B>��</B></A> <A
				href="http://lhc/general/notify/show">全部</A>&nbsp; <A title="设置"
				href="javascript:_edit(1);"> <IMG src="../../img/pencil.png"></A>&nbsp;
			</SPAN></H4>
			</DIV>
			<DIV class="module_body" id="module_1_body">
			<DIV class="module_div" id="module_1_ul" style="HEIGHT: 100px">
			<UL>
				<%
    		NoticeDao noticeDao = new NoticeDao();
      		List<NoticeVO> list = noticeDao.getRecently();
      		for(int i=0;i<list.size();i++){
    	 %>
				<%noticeVO=list.get(i); %>

				<li><a
					href="<%=basePath %>NoticeServlet?action=see&noticeID=<%=noticeVO.getNoticeID() %>"><%=noticeVO.getNoticeTitle() %></a></li>
				<%} %>
			</UL>
			</DIV>
			</DIV>
			</DIV>
			<DIV class="module listColor" id=module_2>
			<DIV class=head>
			<H4 class=moduleHeader id=module_2_head><A class=expand
				href="javascript:_resize(2);"><IMG class=icon id=img_resize_2
				title=折叠 src="../../img/expand_arrow.png"></A> <SPAN class=text
				id=module_2_text onclick=_resize(2);>新闻</SPAN> <SPAN class=title
				id=module_2_title style="CURSOR: move"></SPAN><SPAN class=close
				id=module_2_op><A class=PageLinkDisable id=module_2_link_pre
				title=上一页 href="javascript:NextPage('2',-1);"><B>▲</B></A> <A
				id=module_2_link_next title=下一页 href="javascript:NextPage('2',1);"><B>��</B></A>
			<A href="http://lhc/general/news/show">全部</A>&nbsp;<A title=设置
				href="javascript:_edit(2);"><IMG src="../../img/pencil.png"></A>&nbsp;<A
				title=关闭模块 href="javascript:_del(2);"><IMG
				src="../../img/close_x.png"></A> </SPAN></H4>
			</DIV>
			<DIV class=module_body id=module_2_body>
			<DIV class=module_div id=module_2_ul style="HEIGHT: 100px">
			<UL>
				<%   DynamicNewsDao dndao = new DynamicNewsDao(); 
											List<DynamicNewsVO> dnlist =dndao.getIndexNews();
											for(int i=0;i<dnlist.size();i++){
												DynamicNewsVO dnvo = dnlist.get(i);
										%>
				<LI><A
					href="<%=basePath %>DynamicNewsServlet?action=displayjj&newsID=<%=dnvo.getDynamicNewsID() %>"><%=dnvo.getDynamicNewsTitle() %></A>&nbsp;&nbsp;&nbsp;[<%=dnvo.getPublishTime() %>]
				<%} %>
				
			</UL>
			</DIV>
			</DIV>
			</DIV>

			<DIV class="module listColor" id=module_3>
			<DIV class=head>
			<H4 class=moduleHeader id=module_3_head><A class=expand
				href="javascript:_resize(3);"><IMG class=icon id=img_resize_3
				title=折叠 src="../../img/expand_arrow.png"></A> <SPAN class=text
				id=module_3_text onclick=_resize(3);>待办事宜</SPAN> <SPAN class=title
				id=module_3_title style="CURSOR: move"></SPAN><SPAN class=close
				id=module_3_op><A class=PageLinkDisable id=module_3_link_pre
				title=上一页 href="javascript:NextPage('3',-1);"><B>▲</B></A> <A
				id=module_3_link_next title=下一页 href="javascript:NextPage('3',1);"><B>��</B></A>
			<A title=设置 href="javascript:_edit(3);"><IMG
				src="../../img/pencil.png"></A>&nbsp; </SPAN></H4>
			</DIV>
			<DIV class=module_body id=module_3_body>
			<DIV class=module_div id=module_3_ul style="HEIGHT: 100px">
			<UL>
				<UL></UL>
			</UL>
			</DIV>
			</DIV>
			</DIV>
			<DIV class="module listColor" id=module_13>
			<DIV class=head>
			<H4 class=moduleHeader id=module_13_head><A class=expand
				href="javascript:_resize(13);"><IMG class=icon id=img_resize_13
				title=折叠 src="../../img/expand_arrow.png"></A> <SPAN class=text
				id=module_13_text onclick=_resize(13);>今日计划</SPAN> <SPAN class=title
				id=module_13_title style="CURSOR: move"></SPAN><SPAN class=close
				id=module_13_op><A class=PageLinkDisable
				id=module_13_link_pre title=上一页 href="javascript:NextPage('13',-1);"><B>▲</B></A>
			<A id=module_13_link_next title=下一页
				href="javascript:NextPage('13',1);"><B>��</B></A> <A
				href="http://lhc/general/work_plan/show">全部</A>&nbsp;<A title=设置
				href="javascript:_edit(13);"><IMG src="../../img/pencil.png"></A>&nbsp;<A
				title=关闭模块 href="javascript:_del(13);"><IMG
				src="../../img/close_x.png"></A> </SPAN></H4>
			</DIV>
			<DIV class=module_body id=module_13_body>
			<DIV class=module_div id=module_13_ul style="HEIGHT: 100px">
			<UL>
				<LI>暂无工作计划
				<UL>
					<SCRIPT>
function plan_detail(PLAN_ID)
{
 URL='/general/work_plan/show/plan_detail.php?PLAN_ID='+PLAN_ID;
 myleft=(screen.availWidth-500)/2;
 window.open(URL,'read_work_plan','height=500,width=600,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top=120,left='+myleft+',resizable=yes');
}
</SCRIPT>
				</UL>
				</LI>
			</UL>
			</DIV>
			</DIV>
			</DIV>







			<DIV class=shadow></DIV>
			</TD>
			<TD id=col_r style="PADDING-RIGHT: 10px" vAlign=top width="35%">


			<DIV class="module listColor" id=module_7>
			<DIV class=head>
			<H4 class=moduleHeader id=module_7_head><A class=expand
				href="javascript:_resize(7);"><IMG class=icon id=img_resize_7
				title=折叠 src="../../img/expand_arrow.png"></A> <SPAN class=text
				id=module_7_text onclick=_resize(7);>常用网址</SPAN> <SPAN class=title
				id=module_7_title style="CURSOR: move"></SPAN><SPAN class=close
				id=module_7_op><A class=PageLinkDisable id=module_7_link_pre
				title=上一页 href="javascript:NextPage('7',-1);"><B>▲</B></A> <A
				id=module_7_link_next title=下一页 href="javascript:NextPage('7',1);"><B>��</B></A>
			<A href="http://lhc/general/url.php">全部</A>&nbsp;<A title=设置
				href="javascript:_edit(7);"><IMG src="../../img/pencil.png"></A>&nbsp;<A
				title=关闭模块 href="javascript:_del(7);"><IMG
				src="../../img/close_x.png"></A> </SPAN></H4>
			</DIV>
			<DIV class=module_body id=module_7_body>
			<DIV class=module_div id=module_7_ul style="HEIGHT: 100px">
			<DIV style="FLOAT: left; WIDTH: 49%; LINE-HEIGHT: 20px"><B>公共网址</B>
			<UL>
				<LI><A href="http://www.baidu.com/" target=_blank>百度</A></LI>
				<LI><A href="http://www.google.com/" target=_blank>谷歌</A></LI>

			</UL>
			</DIV>
			<DIV style="FLOAT: right; WIDTH: 49%; LINE-HEIGHT: 20px"><B>个人网址</B>
			<UL>
				<LI><A href="http://www.hao123.com/" target=_blank>hao123</A></LI>
			</UL>
			</DIV>
			</DIV>
			</DIV>
			</DIV>
			<DIV class="module listColor" id=module_19>
			<DIV class=head>
			<H4 class=moduleHeader id=module_19_head><A class=expand
				href="javascript:_resize(19);"><IMG class=icon id=img_resize_19
				title=折叠 src="../../img/expand_arrow.png"></A> <SPAN class=text
				id=module_19_text onclick=_resize(19);>文件柜</SPAN> <SPAN class=title
				id=module_19_title style="CURSOR: move"></SPAN><SPAN class=close
				id=module_19_op><A class=PageLinkDisable
				id=module_19_link_pre title=上一页 href="javascript:NextPage('19',-1);"><B>▲</B></A>
			<A id=module_19_link_next title=下一页
				href="javascript:NextPage('19',1);"><B>��</B></A> <A title=设置
				href="javascript:_edit(19);"><IMG src="../../img/pencil.png"></A>&nbsp;<A
				title=关闭模块 href="javascript:_del(19);"><IMG
				src="../../img/close_x.png"></A> </SPAN></H4>
			</DIV>
			<DIV class=module_body id=module_19_body>
			<DIV class=moduleType id=module_19_type>
			<DIV class=moduleTypeLink id=module_19_type_link><A
				href="javascript:get_file();">最新文件</A> | <A
				href="<%=basePath%>FileCenterServlet?action=showPersonFile">文件柜</A>
			|</DIV>
			<DIV class=moduleTypeOp id=module_19_type_op><A title=更多类型
				href="javascript:ScrollType('19');"><B>��</B></A></DIV>
			</DIV>
			<DIV class=module_div id="module_19_ul" style="HEIGHT: 75px">
			<ul>
				<%
      		FileCenterDao fileDao = new FileCenterDao();
      		HttpSession s = request.getSession();
			User u = (User)session.getAttribute("User");
      		
      		List<FileVO> fvo = fileDao.getNewFiles(u.getUid());
      		for(int i=0;i<fvo.size();i++){
      			FileVO file = fvo.get(0);
       %>
				<li><a
					href="<%=basePath %>FileCenterServlet?action=displayFile&fileID=<%=file.getFileID() %>"><%=file.getFileName() %></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<%=file.getUploadTime() %>]</li>
				<%} %>
			</ul>
			<SCRIPT>
function get_file()
{
	alert("data");
	$.post("FileCenterServlet?action=findNewsFile",findCallBack);   
   
}

function findCallBack(data){
alert(data);
	var obj = document.getElementById("module_19_ul");
    if(!obj) return;
    var arr=eval(data);	
    var str="<UL>";
    for(var i =0;i<arr.length;i++){
    	str+="<li><a href=''>"+arr[i].fileName+"</a></li>";
    }
    obj.innerHTML =str+"</UL>";
}

</SCRIPT></DIV>
			</DIV>
			</DIV>


			<DIV class="module listColor" id=module_16>
			<DIV class=head>
			<H4 class=moduleHeader id=module_16_head><A class=expand
				href="javascript:_resize(16);"><IMG class=icon id=img_resize_16
				title=折叠 src="../../img/expand_arrow.png"></A> <SPAN class=text
				id=module_16_text onclick=_resize(16);>学员查询</SPAN> <SPAN class=title
				id=module_16_title style="CURSOR: move"></SPAN><SPAN class=close
				id=module_16_op><A class=PageLinkDisable
				id=module_16_link_pre title=上一页 href="javascript:NextPage('16',-1);"><B>▲</B></A>
			<A id=module_16_link_next title=下一页
				href="javascript:NextPage('16',1);"><B>��</B></A> <A title=设置
				href="javascript:_edit(16);"><IMG src="../../img/pencil.png"></A>&nbsp;<A
				title=关闭模块 href="javascript:_del(16);"><IMG
				src="../../img/close_x.png"></A> </SPAN></H4>
			</DIV>
			<DIV class=module_body id=module_16_body>
			<DIV class=module_div id=module_16_ul style="HEIGHT: 100px">
			<FORM name=form1 action=/general/ipanel/user/search.php>姓名：<INPUT
				class=SmallInput maxLength=25 name=USER_NAME><BR>
			班级：<SELECT class=SmallSelect style="WIDTH: 128pt" name=DEPT_ID>
				<OPTION value="" selected>所有</OPTION>
			</SELECT><BR>
			性别：<SELECT class=SmallSelect name=SEX>
				<OPTION value="" selected>所有</OPTION>
				<OPTION value=0>男</OPTION>
				<OPTION value=1>女</OPTION>
			</SELECT>&nbsp; <INPUT class=SmallButton title=模糊查询 type=submit value=查询
				name=button></FORM>
			</DIV>
			</DIV>
			</DIV>

			<DIV class="module listColor" id=module_11>
			<DIV class=head>
			<H4 class=moduleHeader id=module_11_head><A class=expand
				href="javascript:_resize(11);"><IMG class=icon id=img_resize_11
				title=折叠 src="../../img/expand_arrow.png"></A> <SPAN class=text
				id=module_11_text onclick=_resize(11);>菜单快捷组</SPAN> <SPAN
				class=title id=module_11_title style="CURSOR: move"></SPAN><SPAN
				class=close id=module_11_op><A class=PageLinkDisable
				id=module_11_link_pre title=上一页 href="javascript:NextPage('11',-1);"><B>▲</B></A>
			<A id=module_11_link_next title=下一页
				href="javascript:NextPage('11',1);"><B>��</B></A> <A title=设置
				href="javascript:_edit(11);"><IMG src="../../img/pencil.png"></A>&nbsp;<A
				title=关闭模块 href="javascript:_del(11);"><IMG
				src="../../img/close_x.png"></A> </SPAN></H4>
			</DIV>
			<DIV class=module_body id=module_11_body>
			<DIV class=module_div id=module_11_ul style="HEIGHT: 100px">
			<DIV style="FLOAT: left; WIDTH: 49%">
			<UL>
				<LI><A id=f5 href="javascript:openURL('/general/email')"><IMG
					height=16 alt=内部邮件 src="../../img/email.gif" width=16
					align=absMiddle border=0> 内部邮件</A>
				<LI><A id=f5 href="javascript:openURL('/general/notify/show')"><IMG
					height=16 alt=公告通知 src="../../img/notify.gif" width=16
					align=absMiddle border=0> 公告通知</A></LI>
			</UL>
			</DIV>
			<DIV style="FLOAT: right; WIDTH: 49%">
			<UL>
				<LI><A id=f5 href="javascript:openURL('/general/calendar')"><IMG
					height=16 alt=日程安排 src="../../img/calendar.gif" width=16
					align=absMiddle border=0> 日程安排</A></LI>
			</UL>
			</DIV>
			<DIV style="FLOAT: right; WIDTH: 49%">
			<UL>
				<LI><A id=f5 href="javascript:openURL('/general/diary')"><IMG
					height=16 alt=工作日志 src="../../img/diary.gif" width=16
					align=absMiddle border=0> 工作日志</A></LI>
			</UL>
			</DIV>
			<DIV style="FLOAT: right; WIDTH: 49%">
			<UL>
				<LI><A id=f5
					href="javascript:openURL('/general/workflow/list')"><IMG
					height=16 alt=我的工作 src="../../img/workflow.gif" width=16
					align=absMiddle border=0> 我的工作</A>
				<UL></UL>
				</LI>
			</UL>
			</DIV>
			<SCRIPT>
function openURL(URL,open_window)
{
  	 if(open_window)
  	    window.open(URL);
  	 else
  	    location=URL;
}

function winexe(NAME,PROG)
{
   URL="/general/winexe?PROG="+PROG+"&NAME="+NAME;
   window.open(URL,"winexe","height=100,width=350,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top=0,left=0,resizable=no");
}
</SCRIPT></DIV>
			</DIV>
			</DIV>




			<DIV class=shadow></DIV>
			</TD>
		</TR>
	</TBODY>
</TABLE>
<DIV id=overlay></DIV>
<DIV class="dialogBlock module" id=optionBlock
	style="DISPLAY: none; WIDTH: 300px">
<H4 class=moduleHeader><SPAN class=title id=optionBlockTitle>模块选项</SPAN><A
	class=option href="javascript:hide_msg('optionBlock');"><IMG
	src="../../img/close.png"></A></H4>
<DIV class=module_body id=msgBody>
<DIV>&nbsp;&nbsp;显示的行数：<INPUT class=SmallInput id=display_lines
	size=5 value=5></DIV>
<DIV>&nbsp;&nbsp;<LABEL for=scroll>列表上下滚动显示</LABEL><INPUT
	id=scroll type=checkbox></DIV>
</DIV>
<H4 class=moduleHeader><SPAN class=title>全局选项</SPAN></H4>
<DIV class=module_body id=msgBody>
<DIV>&nbsp;&nbsp;左侧栏目宽度：<INPUT class=SmallInput id=col_width
	size=5 value=65>%</DIV>
</DIV>
<DIV class=moduleFooter id=msgCommand><INPUT id=module_id
	type=hidden> <INPUT class=BigButton onclick=SetNums()
	type=button value=确定>&nbsp;&nbsp; <INPUT class=BigButton
	onClick="hide_msg('optionBlock')" type=button value=取消></DIV>
<DIV class=moduleFooter id=msgSuccess style="DISPLAY: none">
<H2>保存成功！</H2>
<INPUT class=BigButton onClick="hide_msg('optionBlock')" type=button
	value=关闭></DIV>
</DIV>
<DIV class=tip id=tip><SPAN style="FLOAT: left">管理员提示：本页面执行时间
0.091183 秒</SPAN> <SPAN
	style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; FLOAT: right; PADDING-BOTTOM: 3px; PADDING-TOP: 3px">
&nbsp;&nbsp;&nbsp;&nbsp; <IMG style="CURSOR: pointer"
	onclick="$('tip').style.display='none';" src="../../img/delete.gif">
&nbsp; </SPAN></DIV>

</body>
</html>
